import React from 'react';

export const DetailTableColumns = () => {
  let columns = [
    {
      key: 'BasicInformation',
      title: '基本信息',
      fieldChildren: [
        {
          label: '操作模块',
          field: 'title',
          component: 'Input',
          disabled: true,
          placeholder: '--',
        },
        {
          label: '请求地址',
          field: 'operUrl',
          component: 'Input',
          disabled: true,
          placeholder: '--',
        },
        {
          label: '登录信息',
          field: 'dlxx',
          component: 'Input',
          disabled: true,
          placeholder: '--',
        },
        {
          label: '请求方式',
          field: 'requestMethod',
          component: 'Input',
          disabled: true,
          placeholder: '--',
        },
      ],
    },
    {
      key: 'OpenInformation',
      title: '操作信息',
      fieldChildren: [
        {
          label: '操作方法',
          field: 'method',
          component: 'Input',
          disabled: true,
          placeholder: '--',
          colSpan: 2,
        },
        {
          label: '请求参数',
          field: 'operParam',
          component: 'InputTextArea',
          disabled: true,
          placeholder: '--',
          colSpan: 2,
          autoSize: { minRows: 6, maxRows: 8 },
          // compact:true
        },
        {
          label: '返回参数',
          field: 'jsonResult',
          component: 'Input',
          disabled: true,
          placeholder: '--',
          colSpan: 2,
        },
        {
          label: '操作状态',
          field: 'status',
          component: 'Input',
          disabled: true,
          placeholder: '--',
        },
        {
          label: '操作时间',
          field: 'operTime',
          component: 'Input',
          disabled: true,
          placeholder: '--',
        },
      ],
    },
  ];
  return columns;
};
